Fix many-to-one reference update