fixing patch.sh