Fixed updating the dist to root for objects that cannot find a sub-root.