fixed issue with code not compiling because of incorrect type usage (Expression instead of TemplateExpression)