Fixed typo in object class name comparison