Changed ActiveX detection slightly