fixed bugs related to reboot server