fix cluster size counting problem