fixed a small reconnect bug