network: fix active connection state issue