Fix reconnecting