fix to postgresql