Fix a bug in generating XML to the enabler