Fix for queryDeviceAttributes