Fix race condition example