Replaced the path by the element itself in the management of inbound references.
Should help #43