Fixing overwritten variable bug in RatingManager