         @core.panelModel.set 'Out of goal', ['For this command, please place the cursor in a goal'], 'warning'
 
     warnCurrentGoalIfEmpty: (goal, warning) =>
-        content = goal.content
+        content = goal.getContent()
         isEmpty = content.replace(/\s/g, '').length is 0
         if isEmpty
             warn 'Text Buffer', 'empty content'

            @core.editor.setCursorBufferPosition previousGoal

    give: -> @getCurrentGoal().done (goal) =>
            @warnCurrentGoalIfEmpty goal, 'Please type in the expression to give'
            @core.executable.give goal
        , @warnOutOfGoal



            # if changed then modify text buffer
            if obj.content isnt obj.modifiedContent
                @core.editor.setTextInBufferRange range , obj.modifiedContent
            return obj

