bug fix for running generate_CondSerialization