Fixed export tool bug