fixing character issues