fixed multiple reconnection issues