Added hack, exploiting lookup in globals(), to have the same variable refer to root after insertion.