[buggy] detect which selections are active