fix deep nested object issue