Fix power managment