Bugfixes to voting