Revert "histogram - fixed missing cases which have the maximum value"