Added control when 0 detections on training are made.