fixed problem with not filling histograms