problem in votes controller