fixes context issues when 'context' is not defined in views