changed apply_patch.sh