fixes missing globals issue in twig