fixed that data race