Fix histogram buckets and print final result