Fix bug on home search submit