repaired bug in search functionality