Fix failure to do partially staged commit