Fix crash when loading savegame