Fixed bug in powerbutton