raft: fix log append