fix multi devices bug