fixed a bug in persist vote