fixed bug for search page