Bug fix with sparse degree data.