Fix race condition with auto launch.