correcting reboot code