fix children twig filter

fix some regressions from a refactoring.