Fixed crash on too many power cycles.