Fixed slight bug in reboot methods.
Work fine now.