Fix the bug where log depth would increase by encountering each iterator
Minimal dom started