Fix get_resources call in prefetch