Fixed jpa problem