slight bug fix in average rating