Fixed export code