Fix: insert operations shouldn't be able to alter `cfg` parameter