History bug regarding #2989 and #2963

Could you add a comment about what you're doing here?