fixing chanhistory.