fix PSQL Exception