fix export flags