Fix onChange issue on o2m/m2m

Fixes RM-2680