fixing NPE when the histogram was not set up