Fixes the twig extension so no app needs to be passed