Patch to match classes by class name.