fixed issue preventing same node from being visited twice, even for different identifiers