1.fix bug local storage when error sync to server