Checking for race issue