second fix to quicksearch for PG