Fix twig compatibility