BUG: calculate histograms for input nodes with negative values
BUG: calculate histograms for input nodes with negative values