improve onNodeLost