Minor bug fix with search input