Fix changes to favorites not always saved.