Update node depth during import