fixed cache in patch.sh