Fix ResourceGeneratorCommand