fit_coords now uses match_cats