Fix infinite loop in sparselu