Fixed and tested voting, it works