Fixing bug of Node id null in programs