Fix bug can't find correct node recursively