Fixes loading state for histograms