Fixed the error with the custom twig filters