fixed bug when upvoting a non-comment object