             @.$('.replicas_acks-alert').html ''
 
         check_replicas_acks: (event) =>
+            # Update @max_machines
+            @compute_max_machines()
+
             if event?.which? and event.which is 13
                 @submit_replicas_acks()
 

        destroy: =>
            @datacenter.off 'all', @render

            @model.off 'change:replica_affinities', @compute_max_machines_and_render
            @model.off 'change:primary_uuid', @compute_max_machines_and_render
            @model.off 'change:primary_uuid', @render
            progress_list.off 'all', @render_progress



            return @

        # Compute how many replica we can set for @datacenter
        compute_max_machines: =>
            @max_machines = machines.length
            for datacenter_id of @model.get('replica_affinities')
                if datacenter_id isnt @datacenter.get('id')
                    @max_machines -= @model.get('replica_affinities')[datacenter_id]
            if @model.get('primary_uuid') isnt @datacenter.get('id')
                @max_machines -= 1
 
            # If we can't use all our machines in the datacenter because the replicas value of Universe is too high, we give a little more explanation
            @need_explanation = @max_machines < DataUtils.get_datacenter_machines(@datacenter.get('id')).length
            @max_machines = Math.min @max_machines, DataUtils.get_datacenter_machines(@datacenter.get('id')).length

            # We render only if we are not editing
            if @current_state isnt @states[1]
                @render()

