Fix power factor bug