small fix of reconnect