fix non-deterministic output depending on tree traversal timing