Fixed a race condition in asynchronous process modules.