fix patch.sh