Fixes Twig controller bug