Fixed wrong products counting.