fix for getRating()