Fixed bug in Assign Doctor