Fix ref error for game init