binning: allocation bugfix
histogram: allocation bugfix