Fix bugs when exporting financial documents