fixed histo initializing