Cleaning of dot_detector