Fix sync script