           all = Object.keys(volume.metrics).sort(byNumber).map((i) -> constants.category[i])
           if slot
             slot = undefined
-            cats = all.filter((c) -> ShowGlobal || (Cats[c.id] ? Editing))
+            cats = all.filter((c) -> $scope.showGlobal || (Cats[c.id] ? Editing))
             cats.push(pseudoCategory.asset)
             cats.unshift(pseudoCategory.slot)
             $scope.anyGlobal = all.some((c) -> Cats[c.id] == false)

          return

        $scope.showHideGlobal = ->
          ShowGlobal = !ShowGlobal
          $scope.showGlobal = ShowGlobal
          $scope.setKey(Key.id)
          return



        Editing = $scope.editing = $attrs.edit != undefined
        ID = $scope.id = $attrs.id ? 'ss'
        $scope.showGlobal = false
        Limit = $attrs.limit || Infinity
        Key = undefined

