Fix appending games to history