Corrected 2D historgram with Garrett's code