fix multi device bug