fix check for PG constant