fix continuously reconnect when auth failed