History bug regarding #2989 and #2963

I think it should be
```
if (_position >= i) {
   _position--;
}
```