KCC: fix typo in error path