It sounds like your tws.xml file cannot be overwritten. Make sure this file is not read-only or locked by another process. Also, I suggest you delete your settings.xml file, which is no longer used. To find the directory containing these files, run TWS, select a ticker row, and press ctrl-alt-U.