Fix range selection from tree