fixes multi-level nesting with multiple new nested objects