Correcting bug on search page