Fixes bug in creation of resources list