Small fix to rating calculation because of a failing test