fix twig bug