         @setWorkspaceUnreadCount data, data.unreadCount
 
     if @isMachinesListed then cb()
-    else @once 'MachinesListed', => cb()
+    else @once 'MachinesListed', cb
 
 
   updateMachines: (callback = kd.noop) ->

    @machineLists = []
    @machineListsByName = {}

    @ownMachinesList    = @createMachineList 'own', {}, []
    @sharedMachinesList = @createMachineList 'shared', {}, []

    data = environmentDataProvider.get()


    @emit 'MachinesListed'


  createMachineList: (type, options = {}, data = []) ->

    MachineListClasses =
      own              : SidebarOwnMachinesList
