Fix the traverse function bug.