attempt to fix an error in PSQL