Fixed bug that caused that in get value all connected entities have been
visited and not the one filtered by the specified role.