update null into zero at first