Fix bug with power off.