fixing bug in Async