BUGFIX:Changing the length of histograms led to block artifacts