removed one bug in TD search