Issue #1 Fix saving to settings file