Fix case when some ratings don't exist