fix: Resource judging