Finally fixed the voting system