Add or fix get_name function for the classes in the patch