Restore subscript and superscript, and fix the bug of outside position