fixed setting object settings

this looks like it is only working on 2 levels, missing the recursion here