bug fix when history update was needed