         else
           slugInput.unsetClass 'slug-taken'
 
-    makeSlug = ()=>
+    makeSlug = =>
       titleInput = modal.modalTabs.forms["General Settings"].inputs.Title
       slugInput = modal.modalTabs.forms["General Settings"].inputs.Slug
       KD.remote.api.JGroup.suggestUniqueSlug titleInput.getValue(), (err, newSlug)->
-        slugInput.setValue newSlug
+        if err then slugInput.setValue ''
+        else
+          slugInput.setValue newSlug
 
     getGroupType = ->
       modal.modalTabs.forms["Select group type"].inputs.type.getValue()

              #   defaultValue         : no

    modal = new KDModalViewWithForms modalOptions
    modal.modalTabs.forms["General Settings"].on "FormValidationFailed", ->
      modal.modalTabs.forms["General Settings"].buttons.Save.hideLoader()

  handleError =(err, buttons)->
    unless buttons


  showGroupSubmissionView:->

    verifySlug = ->
      slugInput = modal.modalTabs.forms["General Settings"].inputs.Slug
      KD.remote.api.JName.one
        name: slugInput.getValue()
