fix bug about document outline when secondary section root appears