Trying to track down a possible race condition