fixed duplicate resource def generate.pp