fix bug related to JPA