fix the ksmutil.c