Fixed Auto-Reboot Bug