fix bug in Detector module