Fix index to reflect character changes