fix the escaped math symbols problem