Fix dead variable reference
Update the commitList after (hard)reset