fixing civ war code