Fixed some Hibernate issues