correcting syntax errors in KB files