Fix for serialisation of multiple objects (m2m)