fixing errors with saving game data