replace.sh fix