After refund an order, the order is not seen in the order list and also throwing an error 'undefined'.