fixed bugs in evaluation of detectors