fix some bug OneToOne and OneToMany