removed bugs from histogram