fix class ordering in two-class