update the template to keep KS in the generated file when its value is invalid in the ACE data set.