Fixed.
I made same change in histogram_collect and histogram_collect_cl, please verify that it applies there too.