fixed erroneous output with inconsistent sample sets