Fixed the resource generator