Refs #37, fixes a potential bug in the Star and Upvote models.