Fixed error with voting