Adapt SCCDynamic for sparse input #4

*Fix bug set back to null