fix bug when removing server