Fix: make sure the desiredCapabilities is an array, not an object