serializeHasMany bugfixing