fix async errors