patched the bug when trying to share a a folder that contains subfolders
cleaned obsolete print