Fixed a daemonize bug
Fixed bugs