jpa persistance bug fix