Fixed bug attempting to re-search if a selection had been made.