Fix PG compat