fix hinbernate issue