Fix Postgresql problem