add recursive fenced box feature and fix the bug of AutoNumbering