Fixed the issue with resources