Hibernate util bugfix on sessions