fix type of histogram