AI: rework of tree map selector, hope to catch all cases now.