correctly clearing commit data