fix bug sync