rt: change NIL nodes to null