Fix saving of the playlist and preferences.