fix when search input empty cause 404 issue