Issue #22016:fix out of sequence DocumentMap