fix sharing disabled bug