KS: fix exception type and missing comma