fixed bug whit search