fix data save bug