Fixed tree selection bug for firefox.