Fix voting, fix argument typecasting