fix some bugs for *slice* and *node.cc*