fix minor changes in latest version of K

@chathhorn please review