Fixed a problem with invalid html (search form was printed inside span)