                 module.comm.setOption 'show-' + attr, newState, (state) ->
                     $this.prop 'disabled', false
 
-                    if state isn newState
+                    if state isnt newState
                         # something went wrong :(
                         self.checked = state
                         return

                    self.checked = state

                    if attr is 'hide-self'
                        if state
                            module.comm.getOption 'own-oid', '', (oid) ->
                                $ '.own-oid > input'
                                    .prop 'disabled', false
                                    .val oid
                                $ '.own-oid button'
                                    .prop 'disabled', false
                        else
                            $ '.own-oid > input, .own-oid button'
                                .prop 'disabled', true

    saveName = ->
        return unless $('input.hide-self').is ':checked'

                module.comm.setOption 'match-' + $this.attr('data-match'), newState, (state) ->
                    $this.prop 'disabled', false

                    if state isnt newState
                        # something went wrong :(
                        self.checked = state

