Root element's stack_top has to be 1.

Fix a bug that root element's stack_top becomes
the stack depth of the first iteration step,
not 1.