Debug non-linear sparse solver.
Fix implementation of sparse solver.