fix issue with registering resources
Merge pull request #905 from andrerod/dev

fix issue with registering resources