Fixed reconnection issues.