fix bug with setting values on twig template