fixed bug in sharing module