fix test race