fix replace miss,restore to lowercase