Make node operations set the correct depth