Fixed the search box

correctly resetting the text input (thought this had already been done
before?)