     origCreated = Form.created
     Form.created = ->
       origCreated?()
-      @settings = @data.settings ? {}
+      @settings = @data?.settings ? {}
       Form.setUpDocs(@)
       if Form.isReactive() then Form.setUpReactivity()
       @isSubmitting = false

      # if Form.isBulk()
      #   Form.setUpBulkFields()

      if @data.docPromise?
        Q.when(@data.docPromise).then => Form.mergeLatestDoc(@)
      
      formArgs.onRender?.apply(@, arguments)

    Form.setUpReactivity = (template) ->
      template = getTemplate(template)
      docs = Form.getDocs()
      doc = template.data?.doc
      template.reactiveDoc = new ReactiveVar(doc)
      template.getReactiveDoc = Form.getReactiveDoc.bind(template)
      # If no docs exist, no reactive updates can occur on them.
