Fixed the export tool bug