fix stack overflow when printing tokens ಠ_ಠ