fixed bug that occured in simulataneous voting.