fix search box bugs