fixes a few crashes
a few fixes
changed initialized box and max cluster size