history data bug repair