fixed a bug where objects inside an object where not being traversed.