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

I found a small typo