Fix an error that was occuring with Postgres.