Fixed a bug in the cluster class.