Fixed errors in search page