Fix nested object adding