fix for InitNodeBuf