Fix extraction of full-width generation numbers.