fix sharing detection (again)