async+perf: fixing some code bugs in ch2