Fixing a bug that prevented favorites from being saved.