fix redhat reboot bugs