Fixing inserting values into objects deeper than two levels