Fixed bug with saving and loading savegame file