fixed some searching functionality