fixed issue with api/getLastOrder
fixed issue with api/getLastOrder