Fix exception when removing permanent power