Fix accessing gamedata bug.