fixing bug with font-sizes in equations