Incorrect computation of replace range in CSS CA