Made a small change to the scene graph visitor pattern