fixed type error in search