bug fix: SetStacks in advance to ProcessOneSpan