Fix bug when calculating video ratings