Fixing WriteAsync reference