Fixed the issue which led to incorrect list of URIs (because of
references being passed instead of new list)