Fix ecaping issue in captions