Fixed bug with wrong hibernate dialect setting