Fix changes to favorites not always saved. Closes #9.