regulatorPowerflow bug fixed