Fix errors in ReHat systems