Fix random reboots ( Thanks to percy-g2 and munjeni )