build_truth_matrix fixed