fixed issue related to related m2m object being treated as a related fk object