fixed the index not found when retract unexisting node