Fix NaN issue with ratings graph