Fix usage of invalid node pointers in auto exploration