fix reconnect when first connect is failure.