Fixed errors in search by