Fixed many traversal bugs.