auto reconnect bugfixes