fixing a daemon bug