fix search tree