     collaboration
       .map (id) ->
         machine = machines.get(id)
+        return  if 'collaboration' isnt machine.get 'type'
         machine
           .set 'owner', getMachineOwner machine
           .set 'isApproved', machineRuleChecker machine, ['approved']
           .set 'isPermanent', machineRuleChecker machine, ['permanent']
-      .filter (machine) ->
-        'collaboration' is machine.get 'type'
+      .filter Boolean
 
 ]
 

    own
      .map (id) ->
        machine = machines.get(id)
        machine
          .set 'isApproved', yes
          .set 'isManaged', machineRuleChecker machine, ['managed']
      .filter (machine) ->
        'own' is machine.get 'type'

]


    shared
      .map (id) ->
        machine = machines.get(id)
        return  if 'shared' isnt machine.get 'type'
        machine
          .set 'owner', getMachineOwner machine
          .set 'isApproved', machineRuleChecker machine, ['approved']
          .set 'isPermanent', machineRuleChecker machine, ['permanent']
      .filter Boolean

]

