Fixed some histogram errors