Correct file attributes