fixed bug in getTopOrders