Cleanup applySelections