fix a bug in orders

fix a bug in orders