Made histogram work again