Fix variable export errors.