`len` is not reset after assigned in line 1160.