fixed bug in cluster replacement