fix twig config into library file debug mode enabled