fix reboot loop