Further fix in daemon.py