Fixed a typo that was causing a race condition error.