Fix jpa problem