Fix sub_score_mat() to deal with 'spam' sparse matrices