fix a bug in dwarfs file share.