port this fix https://github.com/Sienna-Platform/PowerSystems.jl/pull/1680
port this fix Sienna-Platform/PowerSystems.jl#1680