Fix to export as text