fix order number generator