Fixed tree bug in comparing to topTree