Fixed major reference centroid bug