bugfix
crashed when cluster size set to 0