Fix subscript and superscript rules