Fix typo in detection