Remove extra '}' in math mode