fixed a potential bug that will ignore dir_id change when mv or cp to root dir