Do not rely on unstable index
Push the feature, not the index
Merge pull request #2936 from ahocevar/unselect-index

Fix unselection of selected features