Bug in TH1F when working with lots of events