fix bugs when user external library like ShareSDK  or in same case