fix rebooting and SOD