fix bug when disconnecting