Fixed some voting bugs introduced by the vote deletion feature.