bug correction: sparse problems work now