bugfix for ordering command