fixed rating calculation in profile