Fix asynchronous errors