Fixed an error in the deamon script.