fix search field bug