Trying to fix emp race error