Fixes the async code