Fixed 500 error on reboot