fixed reconnection issue