added fix on voting