Fix autoreconnect issue