fix nearest when tree is empty