   prepareCollaboration: ->
 
     @rtm = new RealtimeManager
-    @showShareButton()
-    @rtm.ready => @initCollaborationStateMachine()
+
+    @rtm.ready @bound 'initCollaborationStateMachine'
 
 
   getCollaborationHost: -> if @amIHost then nick() else @collaborationHost

  onCollaborationNotStarted: ->

    @statusBar.emit 'CollaborationEnded'
    @collectButtonShownMetric()




  onCollaborationInitial: ->

    if @mountedMachine.isMine()
      @showShareButton()

    kd.utils.defer => @stateMachine.transition 'Loading'


  onCollaborationLoading: ->

