Minor improvement to repeat handling in collision detector.