history id fix