Fixed export bug