Code fixes: send response in async callback