fixed bug in optim_clusters_topo