Fix problems in JPA File.