Deal with centroid on top of border