Fix for problem with Postgress.