Fix a len of array for length of histogram.