Avoid resolving a node more than once