fix to m2m object persistence