fixed bug in upvote controller action