Fix traverse bug