fix bugs in hibernate configuration