Corrections on KF routines