filter invalid child nodes