fix a bug on share_with method