Fix stupid bug with search