improved the type detection method for objects whose extension is not registered