fixing reconnect