Fix variable exported from case