fixed reconnection issues