Fix NaN problem when there are no ratings