fix logic re multiple resources