Fix saving settings when connecting to the application