Fixed bugs in confusion analytical driver