Few histogram fixes