Fixed async bugs.