fix a bug for share