Fix problem with persist hibernate