fix print order bug