Fixed bug: Create the distribution header AFTER encoding the control message since the encoding might add new cached atoms.
Fixed bug: Create the distribution header AFTER encoding the control message since the encoding might add new cached atoms.

flambard/CLERIC