Fixed bug where clusterID was used in rule generation