fix a bug in the model Vote.