Fixed logic for calculating accumulative average rating.