fix replace wrong char