Fixed a race condition at setup time.