fix search tree bug