Fixed some bugs todo with hist names and number of bins