fix right-to-left glitch where character is overwritten