Fix resource twig extension