[Directory]: fix bug on move into shared directory