Corrected math mode typing