trying to fix template context error