fix the detection daemon.