fix the conflict between JSON and latex expression