prevent ko tree parent to its own child nesting