fix to PG