Fix initial redraw of histogram
Cosmetic interventions on code