           $tab = @selector.find("a[href='##{$tab_pane.attr('id')}']")
 
           unless ($tab.length && $tab.hasClass('active'))
-            @selector.find('.active').removeClass('.active')
+            @selector.find('.active').removeClass('active')
             $tab.addClass('active')
             $tab_pane.addClass('active')
 

      @panel.trigger 'change'
      true

    clear: -> @val(null) and false

  $.fn.extend effectivePanelSelect: (option, args...) ->
    retval = @each


      if value == null || value == undefined || value == ''
        @selected.html("<span class='selection-placeholder'>#{@options.placeholder}</span>")
        @selector.find('.active').removeClass('active')
      else
        $item = @selector.find("li[data-item-value='#{value}']")
        $item.addClass(@options.selectedClass)
