Fixed an error in search