Fixed twig bug when leader not set