fix Twig template adapter