Another fix for postgres