Fixed inconsistency when replacing single length ranged character.