Fixed calculate for clusters-bug