apply.sh fixed