fix getOrdersHistory