Fixed resource collection loop.