fixed crash caused by improper type initialized when number of histo bins is not yet set