Ensure that rootDepth < DEPTH_MAX