fix bug in quicksearch