Fix bug in resource