fixed sync-script