bug fixed for async closed