fix replace.sh