The program compares classes by name, which can cause it to use the wrong class when multiple classes can have the same name.