Fixed bug in ksmeta for SL7
Merge branch 'master' into ruan
 - revert to master version