fixed the votes controller