fix error in search