Fix race condition detector