fixed setting category priors and cost matrix