fixed patch.sh