Fixing search with async