fixed error in search