fixed bug sync local data to server