Fix hibernate