addhistory fix