Fixed typo in search function