Fix hist error