fixes some issues with text captions