fix minor error in upgrading pigs