Solved the bug in subscript and superscript