[bugfix] Nested collections were being set to undefined when setting other attributes