fixed type in E_histogram()