Fixed sending arguments to process's main thread.