fix multi-network issues