fixed ne type error in KB, now does double lookup
fixed ne type error in KB, now does double lookup - minorissues