Fix number of connections when disconnected