Fixes issues related to auto-reconnect functionality.