bug fixed in print order