Fix & cache sparse-len bug