History bug regarding #2989 and #2963

I think the reason why it happens is probably that you're not testing (_position >= i).