Fix off-by-1 index in Traversal()