Fix constant reboot and other stuff