Updated to fix the animations that play when centroids are closed