fix deleting last doctor