fix tree selection using location hash