Entries in histogram don't match with contents

If it is a TH1F, use TH1D instead.