Fix scoping error on list of resources