Correction to bead centroid calculation