fixed debug for reconnect