Fixing the in dropdown search when the data helper is a function