Fixed searching bug.