auto-correct wrong/invalid parent to max nesting level of 1