fix a bug that affects getNodes when path='auto' close#135