Minor fixes in karchive.inc and ecm.inc