fixed multiple devices via API correctly