update null value for total order