fix ManyToOne relationship