Fixed minor bug for search input