Fix favorite duplicate on save changes