Fix export script