add missing check in daemon