LDA - Fix a problem with PostgreSQL