fix for current twig extension

a little fix.

i think now work as expected from the beginning.
Maybe an hurry patch make old code