Fix typo in detect