fixing a timing issue that led to wrong detection results