fixed #7 Creating integer array of resource ids