bug in histogram corrected (NBins)