Fix tour undefined bug.