fix for interprocess race condition. Happens when running multiple
processes in parallel for the first time.