fixed small bug in DetectorService