Return correct list from getDevices(int... deviceIds)