Fix warnings on search page