```coffeescript
Parse = require 'parse'

Template.survey_admin.onCreated ->
  @fetched = new ReactiveVar false
  surveyId = @data.id
  self = @

  query = new Parse.Query Survey
  query.get(surveyId).then (survey) ->
      self.fetched.set true
      self.survey = survey
    ,
    (obj, error) ->
      throw new Meteor.Error 'server', error.message

Template.survey_admin.helpers
  survey: ->
    Template.instance().survey
  data: ->
    instanceData = Template.instance().data
    surveyId: instanceData.id
    formId: instanceData.formId
```

Use "instance" as scope reference
user
```coffeescript
Parse = require 'parse'
{Survey} = require '../../imports/models'

Template.survey_admin.onCreated ->
  @fetched = new ReactiveVar false
  surveyId = @data.id
  instance = @

  query = new Parse.Query Survey
  query.get(surveyId).then (survey) ->
      instance.fetched.set true
      instance.survey = survey
    ,
    (obj, error) ->
      throw new Meteor.Error 'server', error.message

Template.survey_admin.helpers
  survey: ->
    Template.instance().survey
  data: ->
    instanceData = Template.instance().data
    surveyId: instanceData.id
    formId: instanceData.formId
```
assistant