Fixed a bug with quit, didn't quit if searching.