Fix sub_score_mat() checking for matrix when given ff