Fix in resource.py