fix power button bug