fix minor bug in delete sharing doctor