Fix writing of CBARG parameters when calling write_config