fixed sync.sh