fix new_data_frame for case when class == "ANY"