more stable selectTool()