fix sed on apply.sh