Fixed context of template rendering.