Fix bugs in search.jsp