Fix sharing cancelling