Fix object detection.