fix some bug for search box