Fix for sharing disabling.