fix bug where clusterdata not being cleared