fixed problem searching bug