data race fix