Fixed a bug that would crash when trying to process a large number of clusters.