fix error in "search by name"