Forgot to account for a race condition.