fix for detection of COM class