delete panic in setCommitIndex