Fixed some bugs with the Serialization of upgrades, they now work correctly.