fix reconnect raise error bug