Bug fix in jpa