Correct the close x with replacing with x