Fixed bug in detectors.