fix the async delete bug.