fixed bug with search by keys