Fix extracting name of selected detections