fixed raced condition