Fix use of hibernate