Fixed JPA error.