fix export script