Fixed export crash