Fix typo in search function