fix kmc's mistakes