fix bug of sharing