Added ability to fix broken upgrades and achievements