fixed bug related to collections being used in resources