fixed config save bug