Satradix: fix some bugs in histogram, but offsets not yet working