fix average rating