fixed context for templates