Solved average rating issue