fix pgsearch