fix random reboots

Signed-off-by: Grarak <williye97@gmail.com>