Fix bug introduced with the click_detector