Fix issue with async timeout