fix daemon for windows