Fix header search field behaviour