Fix shutdown/reboot error