Fixed run_until_complete to match changes in Tulip