Modified incorrect stream append in traversals.