fix a bug of order