Fixing JPA