Correcting some bugs on getOrderData function