fixed incorrect nesting of async context creation