fix centroid import error