fix problem with twig rendering