fixed typo in sparsity gradient