Refs #14827 EEA; fix small mistake in kgs generation