                 self.bindConditions(rule.question_id, $(element), condition.operator, condition.answer)
         # hide show questions
         if rule.conditions.length > 1
-          self.checkConditionsAndHideShow(rule.conditions, ancestorId, $ruleElement, matchType)
+          self.checkConditionsAndHideShow(rule.conditions, ancestorId, $ruleElement, $container, matchType)
         else
-          self.hideShowQuestions(hideQuestions, ancestorId, $ruleElement)
+          self.hideShowQuestions(hideQuestions, ancestorId, $ruleElement, $container)
     return
 
   #bind conditions to question

class ConditionalLogic

  self = ConditionalLogic.prototype


        hideQuestions = self.evaluateCondition(operator, answer, self.getValue($triggerElement))
        if matchingCondition.length > 0
          if conditions.length > 1
            self.checkConditionsAndHideShow(conditions, ancestorId, $ruleElement, $container, matchType)
          else
            self.hideShowQuestions(hideQuestions, ancestor_id, $ruleElement, $container)
    return

  checkConditionsAndHideShow: (conditions, ancestorId, $ruleElement, $container, matchType) ->
    conditionMetTracker = []
    _.each conditions, (condition) ->
      $conditionElement = $("[data-question-id=" + condition.question_id + "]").find('.form-control')
