Fixed unique order number error
Merge pull request #904 from umpirsky/fix/last-order-number

Fixed unique order number error