fix sync script