Fix upgrade file.