add, rm, mv: fix bug that prevents the update of non-sparse dirs