Update tmpLength