Update knode from end.cpp