leak in histogram fixed