Fix typo and add search for a range