fix daemonize switch to work as switch