Now the preferences file is properly updated.