Fixed the get_classes_from_filter() function