calculation of average rating fixed;