fixed bug that set all cluster numbers to 1