better checks to avoid change of children.
fixed bug, now children are filtered