GetCommitCount exception fixed