History off by one fixed