fixed search issue with reset button