Implement selection invalidation.