Fix a comparison

Fix a comparison in resource.coffee