fixed type in votes controller